// components/Boutique/Boutique.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {

    },

    /**
     * 组件的初始数据
     */
    data: {
        Boutique: [{
                image: "/image/car-type.png",
                title: "普通班",
                context: "一个车，每天可预约1次",
                context2: "预约练车，不用排队",
                btn1: "一票到底",
                btn2: "免补考费",
                btn3: "",
                btn4: "",
                price: '2880'
            },
            {
                image: "/image/car-type.png",
                title: "商务班",
                context: "一个车，每天可预约2次",
                context2: "预约练车，不用排队",
                btn1: "一票到底",
                btn2: "免补考费",
                price: "3880",
                btn3: "",
                btn4: "",
            }
        ],
        zizun: [{
            image: "/image/car-type.png",
            title: "至尊VIP班",
            context: "一人一车，随约随练,不限预约次数",
            context2: "五次不过，免费重考",
            btn1: "一票到底",
            btn2: "免补考费",
            btn3: "预约练车",
            btn4: "不用排队",
            price: "3880"
        }, ]
    },

    /**
     * 组件的方法列表
     */
    methods: {
        panel: function (e) {

            if (e.currentTarget.dataset.index != this.data.showIndex) {

                this.setData({

                    showIndex: e.currentTarget.dataset.index

                })

            } else {

                this.setData({

                    showIndex: 0

                })

            }

        },
    }
})